/**
 * 路由表
 * @type {import("vue-router").RouteRecordRaw[]}
 */
export const routes = [
    {
        path: "/:pathMatch(.*)*",
        name: "NotFound",
        component: () => import("@v/common/NotFound.vue"),
    },
    {
        path: "/",
        redirect: "/manage"
    },
    {
        path: '/show',
        name: 'Show',
        component: () => import("@v/show/Index.vue"),
        children: [
            {
                path: "",
                redirect: "/show/diary/1"
            },

            {
                path: "diary/:pageNum",
                name: "ShowDiary",
                component: () => import("@v/show/Diary.vue")
            },
            {
                path: "book/:pageNum",
                name: "ShowBook",
                component: () => import("@v/show/Book.vue")
            },
            {
                path: "photo",
                name: "ShowPhoto",
                component: () => import("@v/show/Photo.vue")
            },
            {
                path: "file",
                name: "ShowFile",
                component: () => import("@v/show/File.vue")
            },
            {
                path: "memory",
                name: "ShowMemory",
                component: () => import("@v/show/Memory.vue")
            },
            {
                path: 'p1',
                name: 'ShowP1',
                component: () => import('@v/show/p1.vue')
            },
            {
                path: 'p2',
                name: 'ShowP2',
                component: () => import('@v/show/p2.vue')
            },
            {
                path: 'p3',
                name: 'ShowP3',
                component: () => import('@v/show/p3.vue')
            },
            {
                path: 'p4',
                name: 'ShowP4',
                component: () => import('@v/show/p4.vue')
            },
            {
                path: 'p5',
                name: 'ShowP5',
                component: () => import('@v/show/p5.vue')
            },
            {
                path: 'p6',
                name: 'ShowP6',
                component: () => import('@v/show/p6.vue')
            }
        ]
    },
    {
        path: "/manage",
        name: "Manage",
        component: () => import("@v/manage/Index.vue"),
        children: [
            {
                path: "",
                redirect: "/manage/article/1"
            },
            {
                path: "login",
                name: "ManageLogin",
                component: () => import("@v/manage/Login.vue")
            },
            {
                path: "editor",
                name: "ManageEditor",
                component: () => import("@v/manage/Editor.vue")
            },
            {
                path: "article/:pageNum",
                name: "ManageArticle",
                component: () => import("@v/manage/Article.vue")
            },
        ]
    },
    {
        path: "/detail/:id",
        name: "Detail",
        component: () => import("@v/detail/Index.vue")
    }

]